﻿using System.ComponentModel.DataAnnotations;

namespace Entity.BaseInfo.DTO.Warehouse
{
    /// <summary>
    /// 仓库表模型 - 新增
    /// </summary>
    public class WarehouseAddDTO
    {
        /// <summary>
        /// 仓库编码
        /// </summary>
        [Required(ErrorMessage = "仓库编码Code不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        [Required(ErrorMessage = "仓库名称Name不能为空")]
        public string Name { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [Required(ErrorMessage = "是否启用仓库IsEnable不能为空")]
        public bool IsEnable { get; set; }
    }
}
